home *** CD-ROM | disk | FTP | other *** search
/ Aminet 50 / Aminet 50 (2002)(GTI - Schatztruhe)[!][Aug 2002].iso / Aminet / text / edit / tecoc-146.lha / squ.bat < prev    next >
DOS Batch File  |  1991-07-05  |  848b  |  27 lines

  1. @echo off
  2. if "%1"=="" goto usage
  3.  
  4. echo tecoc mung squ %1.tec=%1.tes/d:n/l:y/b:y/t:y/c:y/w:n/a:y/e:n
  5. tecoc mung squ %1.tec=%1.tes/d:n/l:y/b:y/t:y/c:y/w:n/a:y/e:n
  6. goto fini
  7.  
  8. :usage
  9. echo : usage:  squ filespec
  10. echo :
  11. echo : squ.bat will run the squ.tec "squish" macro on the teco macro
  12. echo : source file filespec.tes, and produce a filespec.tec squished
  13. echo : file.  the following squish switches are used:
  14. echo :
  15. echo :   /d:n  don't simply delete unnecessary CR/LF's...
  16. echo :   /l:y  ...delete CR/LF's then go back & add them for 70 char lines
  17. echo :   /b:y  delete blank lines
  18. echo :   /t:y  delete unnecessary tabs and formfeeds
  19. echo :   /c:y  delete comments !(SP)...! and !(TAB)...!
  20. echo :   /w:n  don't watch progress
  21. echo :   /a:y  automatic mode, don't subsquish @^U%% macros
  22. echo :   /e:n  don't allow adjacent escapes
  23. echo :
  24.  
  25. :fini
  26. exit
  27.